//
//  JddLookForPasswordOperation.m
//  PlayBall
//
//  Created by superman on 14-8-21.
//
//

#import "JddLookForPasswordOperation.h"
#import "JddParameterBuilder.h"

@implementation JddLookForPasswordOperation
@synthesize userName;
@synthesize userPhoneNum;

- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    NSString *bodyString = [JddParameterBuilder lookForPasswordUsername:userName mobilephoneNum:userPhoneNum];
    NSData *dataPwd = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    
//    NSString *str = [NSJSONSerialization JSONObjectWithData:dataPwd options:NSJSONReadingMutableContainers error:nil];
//    NSLog(@"=========222=========%@",str);
    
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(FindPasswordOperationResult:) withObject:dataPwd waitUntilDone:NO];
}

@end
